package com.my.attendance.service;

import com.my.attendance.dao.PositionDao;
import com.my.attendance.entity.Position;

import java.util.List;

public class PositionService {
    private PositionDao positionDao=new PositionDao();

    public List<Position> getPositionList() throws Exception {
        List<Position> positionList = positionDao.getPositionList();
        return positionList;
    }

    public Position getPosition(int position_number) throws Exception {
        Position position = positionDao.getPosition(position_number);
        return position;
    }

    public int updatePosition(int position_number,int employee_number) throws Exception {
        int i = positionDao.updatePosition(position_number, employee_number);
        return i;
    }
}
